import { defineStore } from "pinia";
import { EPlatform } from "@/util/platform";

const programStore = defineStore("program", {
  state: () => ({
    showScanningHome: true,
    currentPagePath: "pages/personal/index",
    tabBarList: [
      {
        id: 1,
        text: "易栈管理",
        pagePath: "pages/manager/index",
        iconPath: "/static/tabBarIcon/manager.png",
        selectedIconPath: "/static/tabBarIcon/managerHighlight.png",
      },
      {
        id: 2,
        text: "反馈处理",
        pagePath: "pages/feedback/index",
        iconPath: "/static/tabBarIcon/feedback.png",
        selectedIconPath: "/static/tabBarIcon/feedbackHighlight.png",
      },
      {
        id: 3,
        text: "巡检签到",
        pagePath: "pages/signIn/index",
        iconPath: "/static/tabBarIcon/signIn.png",
        selectedIconPath: "/static/tabBarIcon/signInHighlight.png",
      },
      {
        id: 0,
        text: "个人中心",
        pagePath: "pages/personal/index",
        iconPath: "/static/tabBarIcon/personal.png",
        selectedIconPath: "/static/tabBarIcon/personalHighlight.png",
      },
    ],
    browser: {
      mobile: false,
      ipad: false,
      iphone: false,
      android: false,
      wx: false,
      windows: false,
      mac: false,
    },
    platform: "" as EPlatform,
    allWindowHeight: 0,
    statusBarHeight: 0,
    safeAreaBottom: 0,
    titleBarHeight: 0,
    windowHeight: 0,
    screenHeight: 0,
    system: "",
  }),
});

export { programStore };
